import {
	createRouter,
	createWebHashHistory
} from 'vue-router'

const routes = [
	{
		path: '/', 
		redirect: '/moment' //路由重定向
	},
	{
		path: "/moment",
		name: "Moment",
		component: () => import('../views/moment.vue')
	},
	{
		path: "/publish",
		name: "Publish",
		component: () => import('../views/publish.vue')
	},
	{
		path: "/details",
		name: "Details",
		component: () => import('../views/details.vue')
	}
]

const router = createRouter({
	history: createWebHashHistory(),
	routes
})

export default router
